package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "question")
public class Questions implements java.io.Serializable {

    private static final long serialVersionUID = -3136732836884933888L;

    /**
     * 主键id
     */
    private ObjectId id;
    /**
     * 题目标题
     */
    private String question;
    /**
     * 题目选项
     */
    private List<Option> options;

    /**
     * 绑定问卷id
     */
    private ObjectId toQuestionnaireId;
}